package com.kwq.designPattern.construct.adapter;

/**
 * @author kangwanqiang
 * @date 2021/2/5
 * @description 对象的适配器类
 * 对象的适配器，适配器对象中初始化一个被适配对象
 */
public class ObjectAdapter implements Target{
    public ObjectAdapter(Adaptee adaptee) {
        this.adaptee = adaptee;
    }

    private Adaptee adaptee;


    public void request() {
        System.out.println("对象的适配器类，通过调用成员变量adaptee的specificRequest方法完成工作");
        adaptee.specificRequest();
    }
}
